package com.jgy.juc.paper;

import com.jgy.juc.number.Number;

/**
 * @author 姜光远
 * @date 2023/3/8 20:32
 */
public class test {
    public static void main(String[] args) {
        Paper number = new Paper(10000,0);


        Thread t2 = new Thread(number);
        Thread t1 = new Thread(number);



        Thread t3 = new Thread(number);

        Thread t4 = new Thread(number);

        Thread t5 = new Thread(number);

        t2.setName("窗口二：");

        t1.setName("窗口一：");



        t3.setName("窗口3：");

        t4.setName("窗口4：");

        t5.setName("窗口5：");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
    }
}
